﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotelManagementClient.Model
{
    public class ChatContent
    {
        //id 自增长主键，
        //SendUser 发送人，
        //recipientUser 接收人，
        //createTime 创建时间，
        //ChatMsg 消息内容
        //chatMsgType 消息内容(0文字 1图片)
        public int id { get; set; }
        public string sendUser { get; set; }
        public string recipientUser { get; set; }
        public string createTime { get; set; }
        public string chatMsg { get; set; }
        public string chatMsgType { get; set; }

        public ChatContent() { }

        public ChatContent(int id, string sendUser, string recipientUser, string createTime, string chatMsg, string chatMsgType)
        {
            this.id = id;
            this.sendUser = sendUser;
            this.recipientUser = recipientUser;
            this.createTime = createTime;
            this.chatMsg = chatMsg;
            this.chatMsgType = chatMsgType;
        }

        public ChatContent(string sendUser, string recipientUser, string createTime, string chatMsg,string chatMsgType)
        {
            this.sendUser = sendUser;
            this.recipientUser = recipientUser;
            this.createTime = createTime;
            this.chatMsg = chatMsg;
            this.chatMsgType = chatMsgType;
        }
    }
}
